package com.kaily.timemanager.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

import com.app.common.util.Logger;


/**
 * Created by zhoulikai on 17/3/4.
 */

public class CustomerListView extends ListView {
    private final String TAG = "TestListView";

    public CustomerListView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        init();
    }

    public CustomerListView(Context context) {
        super(context);
        init();
    }

    public CustomerListView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public CustomerListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        Logger.d(TAG, ">>>>init>>>>>>>");
    }

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);
        Logger.d(TAG, ">>>>onLayout>>>>>>>");
    }

//    @Override
//    public void forceLayout() {
//        super.forceLayout();
//        layoutChildren();
//    }

    public void notificationView() {
        layoutChildren();
    }

//    @Override
//    public void requestLayout() {
//        super.requestLayout();
//        layoutChildren();
//    }

    @Override
    protected void layoutChildren() {
        super.layoutChildren();
        Logger.d(TAG, ">>>>layoutChildren>>>>>>>");
    }
}
